Resource URL: /platform/<<version=3>>/local/hardware/fcports/<port>

    Overview: This resource applies to manage one fibre-channel port

     Methods: GET, PUT

********************************************************************************

Method GET: Get one fibre-channel port

       URL: GET /platform/<<version=3>>/local/hardware/fcports/<port>

Query arguments:
lnn=<string> Logical node number.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "total": {
          "type": "integer", 
          "description": "The total number of nodes responding."
        }, 
        "nodes": {
          "items": {
            "type": "object", 
            "description": "FC port config object representing one node on this cluster.", 
            "properties": {
              "fcports": {
                "items": {
                  "type": "object", 
                  "properties": {
                    "wwnn": {
                      "type": "string", 
                      "description": "World wide node name of the port"
                    }, 
                    "state": {
                      "enum": [
                        "enable", 
                        "disable"
                      ], 
                      "type": "string", 
                      "description": "State of the port"
                    }, 
                    "port": {
                      "type": "string", 
                      "description": "Port ID"
                    }, 
                    "rate": {
                      "enum": [
                        "auto", 
                        "1", 
                        "2", 
                        "4", 
                        "8"
                      ], 
                      "type": "string"
                    }, 
                    "wwpn": {
                      "type": "string", 
                      "description": "World wide port name of the port"
                    }, 
                    "id": {
                      "type": "string", 
                      "description": "The unique display id"
                    }, 
                    "topology": {
                      "enum": [
                        "auto", 
                        "ptp", 
                        "loop"
                      ], 
                      "type": "string"
                    }
                  }
                }, 
                "type": "array", 
                "description": "A list of the FC ports on this node."
              }, 
              "status": {
                "required": false, 
                "minimum": 0, 
                "type": "integer", 
                "description": "Status of the HTTP response from this node if not 200.  If 200, this field does not appear.", 
                "maximum": 4294967295
              }, 
              "lnn": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Logical node number of the node reporting this information.", 
                "maximum": 4294967295
              }, 
              "id": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Node ID of the node reporting this information.", 
                "maximum": 4294967295
              }, 
              "error": {
                "required": false, 
                "type": "string", 
                "description": "Error message, if the HTTP status returned from this node was not 200."
              }
            }
          }, 
          "type": "array", 
          "description": "The responses from the individual nodes involved in this request."
        }, 
        "errors": {
          "items": {
            "type": "object", 
            "properties": {
              "status": {
                "minimum": 0, 
                "type": "integer", 
                "description": "HTTP Status code returned by this node.", 
                "maximum": 4294967295
              }, 
              "message": {
                "type": "string", 
                "description": "More detailed description of the error."
              }, 
              "code": {
                "type": "string", 
                "description": "The general meaning of the status code."
              }, 
              "lnn": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Logical node number of the node reporting this error.", 
                "maximum": 4294967295
              }
            }
          }, 
          "type": "array", 
          "description": "A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors."
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Change wwnn, wwpn, state, topology, or rate of a FC port

       URL: PUT /platform/<<version=3>>/local/hardware/fcports/<port>

Query arguments:
lnn=<string> Logical node number.

PUT request body schema:
{
  "type": "object", 
  "properties": {
    "wwnn": {
      "type": "string", 
      "description": "World wide node name of the port"
    }, 
    "state": {
      "enum": [
        "enable", 
        "disable"
      ], 
      "type": "string", 
      "description": "State of the port"
    }, 
    "rate": {
      "enum": [
        "auto", 
        "1", 
        "2", 
        "4", 
        "8"
      ], 
      "type": "string"
    }, 
    "wwpn": {
      "type": "string", 
      "description": "World wide port name of the port"
    }, 
    "id": {
      "type": "string", 
      "description": "The unique display id"
    }, 
    "topology": {
      "enum": [
        "auto", 
        "ptp", 
        "loop"
      ], 
      "type": "string"
    }
  }
}

There is no JSON response body for this method.
